<?php

class plugin {

	public static function load($plugin, $args)
	{
		if(strpos($plugin, '-'))
		{
			$plug = explode('-', $plugin);
			include(ROOT . 'plugins/' . $plug[0] . '/plugin.php');
			return call_user_func_array($plug[1], $args);
		}
		else
		{
			include(ROOT . 'plugins/' . $plugin . '/plugin.php');
			return call_user_func_array($plugin, $args);
		}
	}
}
?>